// app.js
import "/utils/http.js";
import "/utils/utils.js";

App({
  token: wx.getStorageSync("HMTT-token") || "",
  userInfo: {},

 async setTabBar() {
    if (this.token) {
     await wx.setTabBarItem({
         index: 3,
         text: '我的',
       })  
     } else {
      await wx.setTabBarItem({
         index: 3,
         text: '未登录',
       })  
     }
 }
 
});
